<template>
  <dialog_item :dialogTitle="'同步情况'"  :visible.sync="weixinResultVisible"  :appendBody="'true'" :isNotShowDefaultBtn="true">
  <p>{{$t('syn_success_department')}}{{weixinResult.DEPT_ADD_SUCCESS}}{{$t('individual')}}，{{$t('failed')}}{{weixinResult.DEPT_ADD_FAIL}}{{$t('individual')}}。</p>
    <p>{{$t('syn_success_user')}}{{weixinResult.USER_ADD_SUCCESS}}{{$t('individual')}}，{{$t('failed')}}{{weixinResult.USER_ADD_FAIL}}{{$t('individual')}}。</p>
    <el-table :data="weixinResult.ERRORS" height="300px" v-if="type=='weixin'">
      <el-table-column
        prop="NAME"
        :label="$t('dingding_name')"
        width="120">
      </el-table-column>
      <el-table-column
        prop="ERROR"
        :label="$t('error_msg')"
        width="180">
      </el-table-column>
      <el-table-column
        prop="TIP"
        :label="$t('error_msg')">
      </el-table-column>
    </el-table>
    <el-table :data="weixinResult.ERRORS" height="300px" v-if="type=='file'">
      <el-table-column
        prop="ROWNUM"
        :label="$t('column_number')"
        width="120">
      </el-table-column>
      <el-table-column
        prop="NAME"
        :label="$t('full_name')"
        width="120">
      </el-table-column>
      <el-table-column
        prop="LOGINNO"
        :label="$t('loginno')"
        width="120">
      </el-table-column>
      <el-table-column
        prop="TELEPHONE"
        :label="$t('cell_phone')"
        width="120">
      </el-table-column>
      <el-table-column
        prop="EMAIL"
        :label="$t('email')"
        width="120">
      </el-table-column>
      <el-table-column
        prop="depts"
        :label="$t('department')"
        width="120">
      </el-table-column>
      <el-table-column
        prop="error"
        :label="$t('error_msg')"
        width="180">
        
      </el-table-column>
    </el-table>
    </dialog_item>
</template>

<script>
export default {
  created() {
  },
  
  computed: {
    weixinResultVisible: {
      get() {
        return this.visible;
      },
      set(val) {
        this.$emit("update:visible", val);
      }
    }
  },
  props: ['visible',"weixinResult","type"],
  data() {
    return {

    };
  },
  methods: {
    exit(){
      this.$emit("exit")
    }
  }
};
</script>

<style>
</style>